import 'package:flutter/material.dart';
import 'package:lifechart/page/mine/mine.dart';

class MinePage extends StatefulWidget {
  const MinePage({Key? key}) : super(key: key);

  @override
  State<MinePage> createState() => _MinePageState();
}

class _MinePageState extends State<MinePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          '我的',style: TextStyle(fontSize: 12),
        ),
      ),
      body: Container(
        child: ListView(
          children: [
            Container(
              margin: EdgeInsets.only(
              ),
              child: ListTile(
                title: Text('个人信息',style: TextStyle(
                  fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){
                  Navigator.push(context, MaterialPageRoute(builder: (context) => Mine()));
                },

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              child: ListTile(
                title: Text('会员中心',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){},

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              child: ListTile(
                title: Text('内容管理',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){},

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              child: ListTile(
                title: Text('关于灵犀',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){
                  //页面跳转
                  Navigator.push(context, MaterialPageRoute(builder: (context) => Mine()));
                },

              ),
            ),

          ],
        ),
      ),

    );
  }
}
